package com.cndw.kungfu.dao;

import com.cndw.dao.jade.annotation.DAO;
import com.cndw.dao.jade.annotation.SQL;
import com.cndw.kungfu.domain.DataInfoSys;

@DAO
public interface AAADao {

	public static final String cacheDataTable = "kf_data_sys";
	
	@SQL("select configValue from kf__config limit 1")
	public String debugMysql();

	@SQL("select sysKey,sysData,syncDBTime from "+cacheDataTable+" where sysKey = :1 limit 1  ")
	public DataInfoSys loadCacheData(String key);
	
	@SQL("update  "+cacheDataTable+" set sysData=:2,syncDBTime=:3 where sysKey=:1 ")
	public void saveCacheData(String sysKey,String sysData,int lastDB);

	@SQL("replace  "+cacheDataTable+" set sysKey=:1,sysData=:2,syncDBTime=:3")	
	public void insertCacheData(String key, String sysData, int syncDBTime);
	
	
}
